function check_form_login()
{
	var form = document.getElementById("login");
	var submit = true;
	if (form.username.value == "")
	{
		document.getElementById("user_entered").innerHTML = " *";
		submit = false;
	}
	else
	{
			document.getElementById("user_entered").innerHTML = "";
	}
	
	if (form.password.value == "")
	{
		document.getElementById("pass_entered").innerHTML = " *";
		submit = false;
	}
	else
	{
		document.getElementById("pass_entered").innerHTML = "";
	}
	
	if(submit == true)
	{
		form.submit();
	}
}

function check_enter_login(event)
{
	// if (moz) else ie
	if(event.which) mykey = event.which;
	else 	mykey = event.keyCode;
	
	// if chr(13) a.k.a ENTER is pressed
	if(mykey == 13)
	{
		// show me that it's trying to stop it
		check_form_login();

		// stop event propagation, keep the KEYPRESS from continuing?
		if(event.stopPropagation) event.stopPropagation();

		// prevent default action, is this SUBMIT?
		if(event.preventDefault) event.preventDefault();

		// for IE: cancel event bubble and clear return value
		event.cancelBubble = true;
		event.returnValue = false;
	}
}


function close_info()
{
	document.getElementById("info").style.display = "none";
}
